package org.zhangsh.spring.aware;

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;

/**
 * </p>
 *
 * @author zhangsh
 * @version 1.0.0
 * @since 2019-03-27
 */
@Component
public class DemoEnvironmentAware implements EnvironmentAware {

    public DemoEnvironmentAware(){
        System.out.println("我是EnvironmentAware init...");
    }

    @Override
    public void setEnvironment(Environment environment) {
        System.out.println("EnvironmentAware(setEnvironment)方法实例化...");
    }
}
